package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: EventsForEventsMemberRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-27
 * @Version: 1.0
 * Table: pear_events
 * Comment:
 * 日程表
 */
public class EventsForEventsMemberRequestConvert extends BaseConvert {
    public static EventsForEventsMember convert(EventsForEventsMemberRequest request) throws Exception {
        EventsForEventsMember daoRequest = new EventsForEventsMember();
        copyProperties(request, daoRequest);

        daoRequest.setEventsCode(daoRequest.getEventsCode() == null ? null : daoRequest.getEventsCode().trim());
        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());
        daoRequest.setJoinTime(daoRequest.getJoinTime() == null ? null : daoRequest.getJoinTime().trim());
        daoRequest.setProjectCode(daoRequest.getProjectCode() == null ? null : daoRequest.getProjectCode().trim());
        daoRequest.setConfirmTime(daoRequest.getConfirmTime() == null ? null : daoRequest.getConfirmTime().trim());
        daoRequest.setMemberAvatar(daoRequest.getMemberAvatar() == null ? null : daoRequest.getMemberAvatar().trim());
        daoRequest.setMemberName(daoRequest.getMemberName() == null ? null : daoRequest.getMemberName().trim());

        return daoRequest;
    }
}
